<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="register/html; charset=gb2312">
    <title>小说阅读系统</title>
    <style>
        body {
            background: url('../img/1.jpg') no-repeat;
            background-size: 100% auto;
        }

        #loginDiv {
            width: 20%;
            height: 300px;
            background-color: #00000085;
            margin: auto;
            margin-top: 10%;
            text-align: center;
            border-radius: 10px;
            padding: 50px 50px;
        }

        #name_trip {
            margin-left: 50px;
            color: red;
        }

        p,
        .sexDiv {
            margin-top: 10px;
            margin-left: 10px;
            text-align: left;
            color: azure;
        }

        .sexDiv > input {
            width: 30px;
            height: 17px;
        }

        input,
        select {

            border-radius: 5px;
            border-style: hidden;
            height: 30px;
            width: 180px;
            background-color: rgba(105, 105, 105, 0.5);
            outline: none;
            color: #f0edf3;
            padding-left: 10px;
        }

        .button {
            margin-top: 30px;
            width: 25%;
            height: 30px;
            border-radius: 10px;
            border: 0;
            color: #fff;
            font-size: 15px;
            background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
            cursor: pointer;
        }

        .introduce {
            margin-left: 110px;
        }

        .introduce > textarea {
            background-color: rgba(216, 191, 216, 0.5);
            border-style: hidden;
            outline: none;
            border-radius: 5px;
        }

        h1 {
            color: #ffffff90;
            margin-top: 5%;
        }

        b {
            margin-left: 50px;
            color: #FFEB3B;
            font-size: 10px;
            font-weight: initial;
        }

        a {
            text-decoration: none;
            color: white;
        }
    </style>
</head>

<body>
<div id="loginDiv">
    <h1>小说阅读系统</h1>
    <form th:action="@{/user/gotologin}" method="post">

        <p>用户姓名:<input id="userNname" type="text" name="userName" autofocus required><label id="name_trip"></label>
        </p>

        <p>用户密码:<input id="password" type="password" name="password" required><label id="password_trip"></label></p>

        <p>确认身份:<select name="role">

            <option value="admin">管理员</option>
            <option value="user">用户</option>
        </select></p>

        <p style="text-align: center;">
            <input type="submit" class="button" onblur="checkForm()" value="登录">
            <button class="button"><a th:href="@{/user/register}">注册</a></button>
        </p>
    </form>
</div>

</body>
</html>
